Skip to content

Conversation

@Janther
Copy link
Contributor

@Janther Janther commented Oct 22, 2025

closes #1293

Normally collections don't need a call to updateMetadata since they tend to be items belonging to a single line or printed by printPreservingEmptyLines.

CatchClauses is printed within the TryStatement so we need to take care of updating the loc.

@Janther Janther requested a review from fvictorio October 22, 2025 20:01
@Janther Janther merged commit 0c50634 into main Oct 29, 2025
7 checks passed
@Janther Janther deleted the preserve-try-statement-empty-line branch October 29, 2025 12:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Formatting removes newline after catch block

3 participants